package cn.xinfei.xdecision.common.service.component.scorecard.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.xinfei.xdecision.common.dao.canal.TableEnum;
import cn.xinfei.xdecision.common.dao.component.scorecard.ScorecardDetailConditionMapper;
import cn.xinfei.xdecision.common.model.component.scorecard.ScorecardDetailCondition;

import cn.xinfei.xdecision.common.service.component.scorecard.ScorecardDetailConditionService;
import cn.xinfei.xdecision.common.utils.constant.Constants;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 评分卡明细表的condition表(ScorecardDetailCondition)表服务实现类
 */
@Service
@Slf4j
public class ScorecardDetailConditionServiceImpl extends ServiceImpl<ScorecardDetailConditionMapper, ScorecardDetailCondition> implements ScorecardDetailConditionService {



    @Override
    public List<ScorecardDetailCondition> getConditionListByDetailId(Integer detailId) {
        List<ScorecardDetailCondition> scorecardDetailConditions = null;

            LambdaQueryWrapper<ScorecardDetailCondition> queryWrapper = new LambdaQueryWrapper<>();
            queryWrapper.eq(ScorecardDetailCondition::getDetailId, detailId);
            scorecardDetailConditions = this.list(queryWrapper);
        return scorecardDetailConditions;
    }
}
